﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Hue {
	public partial class formMainWPF : Form {
		public formMainWPF() {
			InitializeComponent();
		}

		private void formMain_Load(object sender, EventArgs e) {
			colorWheel.SelectedColor = Color.Red;
			colorWheel.ColorChanged += new EventHandler<EventArgs>(colorWheel_ColorChanged);
		}

		void colorWheel_ColorChanged(object sender, EventArgs e) {
			linkHTML.Text = colorWheel.ToHEXColor();
		}

		private void linkHTML_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) {
			Clipboard.SetText(linkHTML.Text);
		}
	}
}
